package vip.zhenzicheng.nettyadv.vo;

import java.util.concurrent.atomic.AtomicLong;

/**
 * 消息自增ID生成器
 *
 * @author zhenzicheng
 * @date 2022-06-14 10:13
 */
public class MakeMsgID {

  private static AtomicLong msgId = new AtomicLong(1);

  public static long getID() {
    return msgId.getAndIncrement();
  }
}
